Skip to content

Add TraceDataCollectorDirectoryPath parameter to VSTestTask#1601

Merged
smadala merged 5 commits intomicrosoft:masterfrom
smadala:add-trace-datacollector-parameter
May 16, 2018
Merged

Add TraceDataCollectorDirectoryPath parameter to VSTestTask#1601
smadala merged 5 commits intomicrosoft:masterfrom
smadala:add-trace-datacollector-parameter

Conversation

@smadala
Copy link
Contributor

@smadala smadala commented May 16, 2018

Description

Value for TraceDataCollectorDirectoryPath will be passed from targets present in Microsoft.CodeCoverage package. More details

Related issue

#981

}

[TestMethod]
public void CreateArgumentShouldAddTraceCollectorDirectoryPathAsTestAdapterIfSettingsGiven()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Check if we can add another test where VSTestTraceDataCollectorDirectoryPath is empty, so it is not set if if runsettings is present

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


if (isCollectCodeCoverageEnabled || isRunSettingsEnabled)
{
// Pass TraceDataCollector path to vstest.console as TestAdapterPath if --collect "Code Coverage"
Copy link
Contributor

@mayankbansal018 mayankbansal018 May 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here trade off is b/w always parsing runsettings(which we don't want to do), vs always adding the path of TraceDataCollector dir if it is present, & runsettings is used.

I agree with latter. #ByDesign

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@mayankbansal018 mayankbansal018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@smadala smadala merged commit db69e15 into microsoft:master May 16, 2018
@smadala smadala deleted the add-trace-datacollector-parameter branch May 16, 2018 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants